package com.xmy.cultivate.entity.views;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class ScoreData {
    @ExcelIgnore
    private Long id;

    @ApiModelProperty("校区id")
    @ExcelIgnore
    private Long schoolId;

    @ApiModelProperty("校区名称")
    @ExcelIgnore
    private String schoolName;

    @ApiModelProperty("任课老师")
    @ExcelIgnore
    private Long teacherId;

    @ApiModelProperty("任课老师姓名")
    @ExcelProperty("任课老师")
    private String teacherName;

    @ApiModelProperty("学生id")
    @ExcelIgnore
    private Long studentId;

    @ApiModelProperty("学生姓名")
    @ExcelIgnore
    private String studentName;

    @ApiModelProperty("科目id")
    @ExcelIgnore
    private Long subjectsId;

    @ApiModelProperty("科目名称")
    @ExcelIgnore
    private String subjectsName;

    @ApiModelProperty("年份")
    @ExcelIgnore
    private Integer yearPart;

    @ApiModelProperty("学期：1寒假班，2春季班，3暑假班，4秋季班")
    @ExcelIgnore
    private Integer quarterNum;

    @ApiModelProperty("学期名称")
    @ExcelIgnore
    private String quarterName;

    @ApiModelProperty("考试名称id:1期中，2期中摸底，3期末，4期末摸底")
    @ExcelIgnore
    private Integer examNum;

    @ApiModelProperty("考试名称")
    @ExcelIgnore
    private String examName;

    @ApiModelProperty("年级")
    @ExcelIgnore
    private Integer yearClassId;

    @ApiModelProperty("年级名称")
    @ExcelIgnore
    private String yearClassName;

    @ExcelIgnore
    private Integer gradeSection;

    @ApiModelProperty("班级id")
    @ExcelIgnore
    private Long gradeId;

    @ApiModelProperty("班级名称")
    @ExcelIgnore
    private String gradeName;

    @ApiModelProperty("分数")
    @ExcelIgnore
    private String score;

    @ApiModelProperty("录入分数后改为1")
    @ExcelIgnore
    private Integer isStatistics;

    @ApiModelProperty("是否微信推送，0否，1是")
    @ExcelIgnore
    private Integer isWxPush;

    @TableField(exist = false)
    @ExcelIgnore
    private String headImg;

    @TableLogic
    @ExcelIgnore
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT)
    @ExcelIgnore
    private Long createdId;

    @TableField(fill = FieldFill.UPDATE)
    @ExcelIgnore
    private LocalDateTime updatedAt;

    @ExcelIgnore
    private LocalDateTime deletedAt;

    @ApiModelProperty("备注")
    @ExcelIgnore
    private String remark;

    /**
     * 总人数
     */
    @ExcelProperty("总人数")
    private Integer studentAllCount;

    /**
     * 实际统计人数
     */
    @ExcelProperty("实际统计人数")
    private Integer stuRealityCount;

    /**
     * 不及格人数
     */
    @ExcelProperty("不及格人数")
    private Integer noPassCount;

    /**
     * 优秀人数
     */
    @ExcelProperty("优秀人数")
    private Integer passCount;

    /**
     * 提分人数
     */
    @ExcelProperty("提分人数")
    private Integer carryCount;

    /**
     * 退步人数
     */
    @ExcelProperty("退步人数")
    private Integer retrogressCount;

    /**
     * 不及格率
     */
    @ExcelProperty("不及格率")
    private BigDecimal noPassRate;

    /**
     * 优秀率
     */
    @ExcelProperty("优秀率")
    private BigDecimal passRate;

    /**
     * 提分率
     */
    @ExcelProperty("提分率")
    private BigDecimal carryRate;

    /**
     * 退步率
     */
    @ExcelProperty("退步率")
    private BigDecimal retrogressRate;

    /**
     * 安全值
     */
    @ExcelProperty("安全值")
    private BigDecimal secureRate;

    /**
     * 不计算率的总数据（例：物理初二的）
     */
    @ExcelIgnore
    private Integer notCalcCount;

    /**
     * 不计算优秀率的数据（例：物理初二的）
     */
    @ExcelIgnore
    private Integer notCalcPassCount;

    @ExcelIgnore
    @ApiModelProperty("未统计")
    @TableField(exist = false)
    private Integer notCounted;

    @ExcelIgnore
    @TableField(exist = false)
    private Long teamId;

    @ExcelIgnore
    @TableField(exist = false)
    private Long teamPid;

    @ExcelIgnore
    @TableField(exist = false)
    private Long schoolPid;

    @ExcelIgnore
    @TableField(exist = false)
    private String teamName;

    @ExcelIgnore
    @TableField(exist = false)
    private List<ScoreData> childRateList;

}
